<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>入库管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
	<meta HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate">
	<meta HTTP-EQUIV="expires" CONTENT="0">
    <link rel="stylesheet" href="../css/font.css">
    <link rel="stylesheet" href="../css/weadmin.css">
    <link rel="stylesheet" href="../lib/layui/css/layui.css">
    <script type="text/javascript" src="../lib/JQuary/jquery-3.2.1.min.js"></script>
    <script src="../lib/layui/layui.all.js" charset="utf-8"></script>
    <script type="text/javascript" src="../js/admin.js"></script>
    <script type="text/javascript" src="../js/main.js"></script>
    <script type="text/javascript" src="../js/base.js"></script>
    <!--<script type="text/javascript" src="../js/house-pay.js"></script>-->

    <link rel="stylesheet" type="text/css" href="../lib/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="../lib/bootstrap/css/bootstrap-datetimepicker.min.css"/>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="../lib/bootstrap/js/locales/bootstrap-datetimepicker.zh-CN.js"
            charset="UTF-8"></script>
	<script type="text/javascript" src="../lib/qrcodejs/qrcode.js"></script>
	<script src="../lib/PerfectLoad.js"></script>

</head>

<style>
	.modallabel{
		/*width: 120px;*/
		width: 35%;
	}

	.layui-table-tool{
		height: 60px;
	}

	a {
		margin: 0 5px;
	}

	.layui-table-grid-down{
		display: none;
	}

	.layui-table-cell{
		overflow:visible;
	}

	.layui-table-total tr{
		background-color: #f2f2f2;
	}

	.layui-input-inline{
		/*width: 180px!important;*/
		width: 60%!important;
	}

	.layui-input{
		width: 100%!important;
	}

	.layui-table-page .layui-laypage input{
		width: 50px!important;
	}

	.col-lg-2,.col-md-2{
		width: 20%;
	}
</style>

<!--<script>-->
    <!--if (GetSessionKeyVale('username') == '') {-->
        <!--parent.location.href = "/login.html"-->
    <!--}-->
<!--</script>-->

<body>

<div class="weadmin-body">
	<div class="layui-row">
		<form class="layui-form layui-col-md12 we-search">
			<button type="button" class="layui-btn " id="addPay" style="margin-left:10px"><i
					class="layui-icon layui-icon-add-circle-fine"></i>添加单据
			</button>
			<button type="button" class="layui-btn " id="editPay" style="margin-left:10px"><i
					class="layui-icon layui-icon-edit"></i>修改单据
			</button>
			<button type="button" class="layui-btn " id="savePay" style="margin-left:10px"><i
					class="layui-icon ">&#xe60a;</i>保存单据
			</button>
			<button type="button" class="layui-btn" id="btnSearch" style="margin-left:10px"><i
					class="layui-icon">&#xe615;</i>查询单据
			</button>
			<!--<button type="button" class="layui-btn " id="SetPay" style="margin-left:10px"><i-->
					<!--class="layui-icon">&#xe60a;</i>全部结算-->
			<!--</button>-->
			<button type="button" class="layui-btn layui-btn-danger" id="Audit" style="margin-left:10px"><i
					class="layui-icon layui-icon-ok"></i>审核单据
			</button>
			<button type="button" class="layui-btn " id="StopTem" style="margin-left:10px"><i
					class="layui-icon layui-icon-close"></i>作废单据
			</button>
			<button type="button" class="layui-btn " id="PrintTem" style="margin-left:10px"><i
					class="layui-icon layui-icon-file-b"></i>打印单据
			</button>

			<!--<button type="button" style="float: right;margin-right:10px" class="layui-btn layui-btn-danger"  id="btnPay" lay-event="btnPay"><i-->
					<!--class="layui-icon layui-icon-rmb"></i>结算费用</button>-->
			<span class="Sysday" style="display: none"></span>



			<!--<button type="button" class="layui-btn layui-btn-warm" id="onekey"><i class="layui-icon">&#xe615;</i>一键缴费</button>-->
		</form>
	</div>

	<div class="ui_content seatitle" style="margin-bottom: 15px">
		<div class="box_top">单据信息</div>
	</div>

	<div class="layui-form-item">
		<div class="col-lg-2 col-md-2">
			<label class="modallabel layui-form-label" >
				单据号
			</label>
			<div class="layui-input-inline" >
				<input type="text" name="tem_no" autocomplete="off" id="tem_no" class="layui-input" disabled="disabled">
			</div>
		</div>
		<div class="col-lg-2 col-md-2">
			<label class="modallabel layui-form-label ">
				创建者
			</label>
			<div class="layui-input-inline">
				<input type="text" name="create_user" id="create_user" autocomplete="off" class="layui-input" disabled="disabled">
			</div>
			<div class="layui-input-inline building_id" style="display: none">
				<input type="text" name="create_user_id" autocomplete="off" id="create_user_id" class="layui-input" disabled="disabled">
			</div>
		</div>
		<div class="col-lg-2 col-md-2">
			<label class="modallabel layui-form-label ">
				创建时间
			</label>
			<div class="layui-input-inline">
				<input type="text" name="create_time" autocomplete="off" id="create_time" class="layui-input" disabled="disabled">
			</div>
		</div>
		<div class="col-lg-2 col-md-2">
			<label class="modallabel layui-form-label ">
				单据合计
			</label>
			<div class="layui-input-inline">
				<input type="text" name="should_pay" id="should_pay" autocomplete="off" class="layui-input" disabled="disabled">
			</div>
		</div>
		<div class="col-lg-2 col-md-2">
			<label class="modallabel layui-form-label ">
				审核员
			</label>
			<div class="layui-input-inline">
				<input type="text" id="auditor" name="auditor" autocomplete="off" class="layui-input" disabled="disabled">
			</div>
		</div>
		<!--<div class="col-lg-2 col-md-2">-->
			<!--<label class="modallabel layui-form-label ">-->
				<!--审核时间-->
			<!--</label>-->
			<!--<div class="layui-input-inline">-->
				<!--<input type="text" name="phone" id="auditing_time" autocomplete="off" class="layui-input" disabled="disabled">-->
			<!--</div>-->
		<!--</div>-->
	</div>



	<div id="InStorageList" lay-filter="InStorageList" ></div>



	　

	<script type="text/html" id="HousePayTool">



		<div class="layui-form-item" >


			<div class="panel panel-default" id="FormDrug"
				 style="display: none; width:600px;z-index: 9999;position: absolute;top: 35%;left: 10%;border-color: #9b9b9b;">
				<div class="panel-heading" style="border-width: 0;padding: 0">
					<button type="button" class="close" style="margin-top: 0;margin-right: 5px;"><span >x</span></button>
				</div>
				<div class="panel-body" style="padding: 0 10px 10px 10px">
					<div id="DrugList" style="width: 200px;" lay-filter="drugevent"></div>
				</div>
			</div>

			<!--<label class="modallabel layui-form-label" style="float: left;text-align:left;padding-left:0;font-weight:bold;color:#555">-->
				<!--临时收费项目-->
			<!--</label>-->
			<div class="layui-form-item">
				<div class="col-lg-2 col-md-2">
					<label class="modallabel layui-form-label" >
						简码
					</label>
					<div class="layui-input-inline" >
						<input type="text" name="drug_jm" autocomplete="off" id="drug_jm" class="layui-input" disabled="disabled">
					</div>
				</div>
				<div class="layui-input-inline layui-form" lay-filter='sel_srf' style="width: 100px !important">
					<select id="srf" class="select">
						<option value="py" selected="selected">拼音</option>
						<option value="wb">五笔</option>
						<option value="zdy">自定义</option>
					</select>
				</div>
				<div class="col-lg-2 col-md-2">
					<label class="modallabel layui-form-label ">
						药品名称
					</label>
					<div class="layui-input-inline">
						<input type="text" name="drug_name" id="drug_name" autocomplete="off" class="layui-input" disabled="disabled">
					</div>
					<div class="layui-input-inline">
						<input type="text" name="drug_id" id="drug_id" autocomplete="off" class="layui-input" disabled="disabled" style="display: none">
					</div>
				</div>
				<div class="col-lg-2 col-md-2">
					<label class="modallabel layui-form-label ">
						入库价
					</label>
					<div class="layui-input-inline">
						<input type="number" name="in_price" autocomplete="off" id="in_price" class="layui-input" disabled="disabled">
					</div>
				</div>
				<div class="col-lg-2 col-md-2">
					<label class="modallabel layui-form-label ">
						数量
					</label>
					<div class="layui-input-inline">
						<input type="number" name="drug_number" autocomplete="off" id="drug_number" class="layui-input" disabled="disabled">
					</div>
					<!--<label class="modallabel layui-form-label ">-->
						<!--规格-->
					<!--</label>-->
					<div class="layui-input-inline">
						<input type="text" name="drug_specifications" autocomplete="off" id="drug_specifications" class="layui-input" disabled="disabled" style="display: none">
					</div>
					<div class="layui-input-inline">
						<input type="text" name="drug_unit" autocomplete="off" id="drug_unit" class="layui-input" disabled="disabled" style="display: none">
					</div>
				</div>
			</div>
		</div>

	</script>



</div>


<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="HousepayForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 10px auto;width: 900px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title">单据信息</h4>
			</div>
			<div class="modal-body">
				<div class="layui-form">
					<div class="layui-row">
						<form class="layui-form layui-col-md12">
							<label  class="modallabel" style="margin-left: 10px">
								选择创建日期：
							</label>
							<div class="layui-input-inline" style="width: 180px!important">
								<input class="layui-input date" placeholder="开始日期"  name="start" id="startday">
							</div>
							<label  class="modallabel" style="margin-left: 10px">
								至：
							</label>
							<div class="layui-input-inline" style="width: 180px!important">
								<input class="layui-input date" placeholder="开始日期"  name="start" id="endday">
							</div>
							<label class="modallabel" style="margin-left: 10px">
								状态：
							</label>
							<div class="layui-input-inline layui-form" lay-filter='sel_status' style="width: 180px!important">
								<select id="status" class="select" lay-filter='' lay-search>
									<option value="">请选择</option>
									<option value="0">未收费</option>
									<option value="1">已收费</option>
									<option value="2">作废</option>
								</select>
							</div>
							<button type="button" class="layui-btn" style="margin-left: 10px" id="btnSearchTem">查询单据</button>
						</form>
					</div>

					<!--<div class="ui_content" style="margin-bottom: -10px;margin-top: 10px">-->
						<!--<div class="box_top">房户信息</div>-->
					<!--</div>-->

					<div class="layui-table" id="TemTable"  lay-filter="TemTable"></div>

					<div class="ui_content" style="margin-bottom: -10px">
						<div class="box_top">单据明细</div>
					</div>

					<div class="layui-table" id="TemDetailTable"  lay-filter="TemDetailTable"></div>


					<div class="modal-footer">
						<!--<button type="button" class="layui-btn"  id="btnCabinetFormConfirm">批量生成</button>-->
						<button type="button" class="layui-btn layui-btn-defalut" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>






<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="PayForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 100px auto;width: 400px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title">结算费用</h4>
			</div>
			<div class="modal-body" style="height: 300px;">
				<div class="layui-form">
					<div class="layui-form-item" style="display: none">
						<label for="pay_id" class="modallabel layui-form-label">
							ID
						</label>
						<div class="layui-input-inline">
							<input type="text" id="pay_id" name="pay_id" autocomplete="off" class="layui-input" disabled="disabled">
						</div>
					</div>
					<div class="layui-form-item">
						<label class="modallabel layui-form-label ">
							应收金额
						</label>
						<div class="layui-input-inline" style="width: 110px!important;">
							<span class="should_pay" style="font-size: 26px;font-weight: bold;color: #e8202a"></span>
							<!--<input type="text" name="should_pay" autocomplete="off" class="layui-input should_pay" disabled="disabled">-->
						</div>
					</div>
					<div class="layui-form-item">
						<label for="qte" class="modallabel layui-form-label ">
							缴费方式
						</label>
						<div class="layui-input-inline layui-form" lay-filter='qte'>
							<select id="qte" class="select" lay-filter='disQte' lay-search>
								<option value="">请选择收费方式</option>
								<!--<option value="0">现金缴费</option>-->
								<!--<option value="1">支付宝</option>-->
								<!--<option value="2">微信</option>-->
							</select>
						</div>
					</div>
					<div class="layui-form-item">
						<label class="modallabel layui-form-label ">
							实收金额
						</label>
						<div class="layui-input-inline">
							<input type="number" name="get_pay" autocomplete="off" class="layui-input get_pay" >
						</div>
					</div>
					<div class="layui-form-item bill">
						<label class="modallabel layui-form-label ">
							票据号
						</label>
						<div class="layui-input-inline">
							<input type="text" name="billno" autocomplete="off" id="billno" class="layui-input billno" >
						</div>
					</div>
					<div class="layui-form-item">
						<label class="modallabel layui-form-label ">
							找零金额
						</label>
						<div class="layui-input-inline" style="width: 110px!important;">
							<span class="back_pay" style="font-size: 26px;font-weight: bold;">0</span>
							<!--<input type="number" name="back_pay" autocomplete="off" class="layui-input back_pay" >-->
						</div>
					</div>

				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="layui-btn" id="btnPayConfirm">确认缴费</button>
				<button type="button" class="layui-btn layui-btn-defalut" data-dismiss="modal">关闭</button>
			</div>

		</div>
	</div>
</div>




<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="StopReasonForm" tabindex="-1" role="dialog"
	 aria-labelledby="aFormModalLabel" aria-hidden="true">
	<div class="modal-dialog" style="margin: 10px auto;width: 700px">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
						aria-hidden="true">x</span></button>
				<h4 class="modal-title">作废原因</h4>
			</div>
			<div class="modal-body">
				<form class="layui-form">
					<div class="layui-form-item" style="display: none">
						<label class="modallabel layui-form-label ">
							流水号
						</label>
						<div class="layui-input-inline">
							<input type="text" name="tem_no" autocomplete="off"
								   class="layui-input tem_no">
						</div>
						<label class="modallabel layui-form-label ">
							金额
						</label>
						<div class="layui-input-inline">
							<input type="number" name="get_pay" autocomplete="off"
								   class="layui-input get_pay">
						</div>
						<label class="modallabel layui-form-label ">
							支付方式
						</label>
						<div class="layui-input-inline">
							<input type="text" name="payType" autocomplete="off"
								   class="layui-input payType">
						</div>
					</div>
					<div class="layui-form-item">
						<label for="stop_reason" class="modallabel layui-form-label">
							作废原因
						</label>
						<div class="layui-input-inline" style="width: 510px!important;">
							<input type="text" id="stop_reason" name="stop_reason" autocomplete="off"
								   class="layui-input" placeholder="请输入作废原因">
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="layui-btn" id="btnStopReasonForm">确认</button>
				<button type="button" class="layui-btn layui-btn-defalut" data-dismiss="modal">关闭</button>
			</div>
		</div>
	</div>
</div>



<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="QRForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 50px auto;width: 700px" >
		<div class="modal-content" >
			<div class="modal-header" style="border: 0">
				<button type="button" class="close"><span >x</span></button>
				<h4 class="modal-title" id="ccFormModalLabel"></h4>
			</div>
			<div class="modal-body" style="text-align: center">
				<div id="payimage" style="margin-top:15px;"></div>
			</div>
			<div class="text-center" style="margin-top: 20px;margin-bottom: 30px">
				<label style="font-weight: bold;font-size: 25px;color: #5FB878">请使用微信扫码付款</label>
			</div>
		</div>
	</div>
</div>

<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="AliQRForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 50px auto;width: 700px" >
		<div class="modal-content" >
			<div class="modal-header" style="border: 0">
				<button type="button" class="close"><span >x</span></button>
				<h4 class="modal-title"></h4>
			</div>
			<div class="modal-body" style="text-align: center">
				<div id="Alipayimage" style="margin-top:15px;"></div>
			</div>
			<div class="text-center" style="margin-top: 20px;margin-bottom: 30px">
				<label style="font-weight: bold;font-size: 25px;color: #00a8f1">请使用支付宝扫码付款</label>
			</div>
		</div>
	</div>
</div>



<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="AliQRBoxForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 80px auto;width: 400px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title">扫码支付</h4>
			</div>
			<div class="modal-body" style="text-align: center">
				<div class="layui-form-item">
					<label class="modallabel layui-form-label ">
						等待扫码
					</label>
					<div class="layui-input-inline">
						<input id="AlioutTradeNo" class="layui-input" type="password">
					</div>
				</div>
			</div>
			<div class="text-center" style="margin-top: 20px;margin-bottom: 30px">
				<label style="font-weight: bold;font-size: 25px;color: #00a8f1">请出示支付宝付款码</label>
			</div>
		</div>
	</div>
</div>


<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="QRBoxForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 80px auto;width: 400px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title">扫码支付</h4>
			</div>
			<div class="modal-body" style="text-align: center">
				<div class="layui-form-item">
					<label class="modallabel layui-form-label ">
						等待扫码
					</label>
					<div class="layui-input-inline">
						<input id="outTradeNo" class="layui-input" type="password">
					</div>
				</div>
			</div>
			<div class="text-center" style="margin-top: 20px;margin-bottom: 30px">
				<label style="font-weight: bold;font-size: 25px;color: #5FB878">请出示微信付款码</label>
			</div>
		</div>
	</div>
</div>

<div class="modal col-lg-12 col-xs-12" style="padding: 0px" id="AdditemForm" tabindex="-1" role="dialog" aria-labelledby="aFormModalLabel" aria-hidden="true" >
	<div class="modal-dialog" style="margin: 10px auto;width: 700px" >
		<div class="modal-content" >
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">x</span></button>
				<h4 class="modal-title">临时收费项目信息</h4>
			</div>
			<div class="modal-body">
				<div class="layui-form">
					<div class="layui-form-item">
						<!--<label for="tem_item_id" class="modallabel layui-form-label ">-->
						<!--项目ID-->
						<!--</label>-->
						<!--<div class="layui-input-inline" style="display:none;">-->
							<!--<input type="text" name="tem_item_id" id="tem_item_id" autocomplete="off" class="layui-input" disabled="disabled" >-->
						<!--</div>-->
						<label for="tem_item_name" class="modallabel layui-form-label ">
							项目名称
						</label>
						<div class="layui-input-inline">
							<input type="text" id="tem_item_name" placeholder="请输入项目名称" name="tem_item_name" autocomplete="off" class="layui-input">
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="layui-btn"  id="btnAdditemConfirm">确认</button>
						<button type="button" class="layui-btn layui-btn-defalut" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>



<script>
    layui.use('laydate', function() {
        var laydate = layui.laydate;


    });

</script>

<script type="text/javascript" src="../js/manage-instorage.js"></script>
</body>

</html>